package sdw.ufal.p3.persistence;

import sdw.ufal.p3.entity.Processo;
import gov.tjpr.entity.pagination.Page;
import gov.tjpr.persistence.hibernate.AbstractHibernateDAO;

@SuppressWarnings("serial")
public class ProcessoDAOImpl extends AbstractHibernateDAO<Processo, Long> implements ProcessoDAO{

	public Page<Processo> findProcessosAtivos(Page<Processo> pagina) {
		String hql = "select p from Processo p";
		return getPage(pagina, hql, "p.idProcesso");
	}

}
